<#assign pojo=oneToManyPojo.getOne()>
<#assign many=oneToManyPojo.getMany()>
<#assign ones=oneToManyPojo.getOnes()>
package ${pojo.getPackageName()}.controller;

<#assign classbody>
<#assign service="${pojo.getDeclarationNameFirstLetterLower()}Service">
<#assign declarationName = pojo.importType(pojo.getDeclarationName())>
<#assign declarationNameFirstLetterLower = "${pojo.getDeclarationNameFirstLetterLower()}">
<#assign declarationComment = "${pojo.getComment()}">
/**
 * @author bo.wang
 */
@RequestMapping("/${pojo.getDeclarationNameFirstLetterLower()}")
@Api(value = "${pojo.getDeclarationNameFirstLetterLower()}", description = "<#if pojo.getComment()?exists>${pojo.getComment()}</#if>API")
@RestController("${pojo.getDeclarationNameFirstLetterLower()}Controller")
public class ${declarationName}Controller extends Base${declarationName}Controller{

    Log log = LogFactory.getLog(${declarationName}Controller.class);

}
</#assign>
import java.io.Serializable;
import java.util.Collection;
import java.util.Map;
import java.util.List;
import java.util.UUID;

import javax.annotation.Resource;
import javax.transaction.Transactional;

import com.ling.pl.core.commons.exception.BusinessException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;

import com.ling.pl.core.commons.support.DaoPage;
import com.ling.pl.core.commons.utils.PageUtils;
import com.ling.pl.core.commons.utils.AssertHelper;
import com.ling.pl.core.commons.utils.reflect.ReflectUtils;
import org.springframework.web.bind.annotation.*;
import ${pojo.getPackageName()}.model.${declarationName};
import ${pojo.getPackageName()}.model.${declarationName}VO;
import ${pojo.getPackageName()}.model.${declarationName};
<#foreach child in many>
<#assign childdeclarationName = child.importType(child.getDeclarationName())>
import ${child.getPackageName()}.model.${childdeclarationName}VO;
import ${child.getPackageName()}.model.${childdeclarationName};
</#foreach>
<#foreach child in ones>
<#assign childdeclarationName = child.importType(child.getDeclarationName())>
import ${child.getPackageName()}.model.${childdeclarationName}VO;
import ${child.getPackageName()}.model.${childdeclarationName};
</#foreach>
import ${pojo.getPackageName()}.service.${declarationName}Service;
${classbody}
